//package com.woniu.entity.common;
//
//import com.thoughtworks.xstream.XStream;
//
//public class ObjToXml {
//
//    public static String change(BaseMessage msg){
//        XStream xStream = new XStream();
//        String xml = null;
//
//        xStream.processAnnotations(TextMessage.class);
////        xStream.processAnnotations(ImageMessage.class);
////        xStream.processAnnotations(VideoMessage.class);
////        xStream.processAnnotations(VoiceMessage.class);
//
//        xml = xStream.toXML(msg);
//
//        return xml;
//    }
//}
